﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003B5 RID: 949
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DeployRotaterScRsp : IMessage<DeployRotaterScRsp>, IMessage, IEquatable<DeployRotaterScRsp>, IDeepCloneable<DeployRotaterScRsp>, IBufferMessage
	{
		// Token: 0x17000C28 RID: 3112
		// (get) Token: 0x06002A6F RID: 10863 RVA: 0x0007520F File Offset: 0x0007340F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DeployRotaterScRsp> Parser
		{
			get
			{
				return DeployRotaterScRsp._parser;
			}
		}

		// Token: 0x17000C29 RID: 3113
		// (get) Token: 0x06002A70 RID: 10864 RVA: 0x00075216 File Offset: 0x00073416
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DeployRotaterScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000C2A RID: 3114
		// (get) Token: 0x06002A71 RID: 10865 RVA: 0x00075228 File Offset: 0x00073428
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DeployRotaterScRsp.Descriptor;
			}
		}

		// Token: 0x06002A72 RID: 10866 RVA: 0x0007522F File Offset: 0x0007342F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DeployRotaterScRsp()
		{
		}

		// Token: 0x06002A73 RID: 10867 RVA: 0x00075238 File Offset: 0x00073438
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DeployRotaterScRsp(DeployRotaterScRsp other) : this()
		{
			this.energyInfo_ = ((other.energyInfo_ != null) ? other.energyInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.rotaterData_ = ((other.rotaterData_ != null) ? other.rotaterData_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002A74 RID: 10868 RVA: 0x000752A0 File Offset: 0x000734A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DeployRotaterScRsp Clone()
		{
			return new DeployRotaterScRsp(this);
		}

		// Token: 0x17000C2B RID: 3115
		// (get) Token: 0x06002A75 RID: 10869 RVA: 0x000752A8 File Offset: 0x000734A8
		// (set) Token: 0x06002A76 RID: 10870 RVA: 0x000752B0 File Offset: 0x000734B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterEnergyInfo EnergyInfo
		{
			get
			{
				return this.energyInfo_;
			}
			set
			{
				this.energyInfo_ = value;
			}
		}

		// Token: 0x17000C2C RID: 3116
		// (get) Token: 0x06002A77 RID: 10871 RVA: 0x000752B9 File Offset: 0x000734B9
		// (set) Token: 0x06002A78 RID: 10872 RVA: 0x000752C1 File Offset: 0x000734C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000C2D RID: 3117
		// (get) Token: 0x06002A79 RID: 10873 RVA: 0x000752CA File Offset: 0x000734CA
		// (set) Token: 0x06002A7A RID: 10874 RVA: 0x000752D2 File Offset: 0x000734D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterData RotaterData
		{
			get
			{
				return this.rotaterData_;
			}
			set
			{
				this.rotaterData_ = value;
			}
		}

		// Token: 0x06002A7B RID: 10875 RVA: 0x000752DB File Offset: 0x000734DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DeployRotaterScRsp);
		}

		// Token: 0x06002A7C RID: 10876 RVA: 0x000752EC File Offset: 0x000734EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DeployRotaterScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.EnergyInfo, other.EnergyInfo) && this.Retcode == other.Retcode && object.Equals(this.RotaterData, other.RotaterData) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002A7D RID: 10877 RVA: 0x00075350 File Offset: 0x00073550
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.energyInfo_ != null)
			{
				num ^= this.EnergyInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rotaterData_ != null)
			{
				num ^= this.RotaterData.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002A7E RID: 10878 RVA: 0x000753BB File Offset: 0x000735BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002A7F RID: 10879 RVA: 0x000753C3 File Offset: 0x000735C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002A80 RID: 10880 RVA: 0x000753CC File Offset: 0x000735CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rotaterData_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.RotaterData);
			}
			if (this.energyInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.EnergyInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002A81 RID: 10881 RVA: 0x00075440 File Offset: 0x00073640
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.energyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EnergyInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rotaterData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RotaterData);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002A82 RID: 10882 RVA: 0x000754B0 File Offset: 0x000736B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DeployRotaterScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.energyInfo_ != null)
			{
				if (this.energyInfo_ == null)
				{
					this.EnergyInfo = new RotaterEnergyInfo();
				}
				this.EnergyInfo.MergeFrom(other.EnergyInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rotaterData_ != null)
			{
				if (this.rotaterData_ == null)
				{
					this.RotaterData = new RotaterData();
				}
				this.RotaterData.MergeFrom(other.RotaterData);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002A83 RID: 10883 RVA: 0x00075544 File Offset: 0x00073744
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002A84 RID: 10884 RVA: 0x00075550 File Offset: 0x00073750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 90U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.energyInfo_ == null)
							{
								this.EnergyInfo = new RotaterEnergyInfo();
							}
							input.ReadMessage(this.EnergyInfo);
						}
					}
					else
					{
						if (this.rotaterData_ == null)
						{
							this.RotaterData = new RotaterData();
						}
						input.ReadMessage(this.RotaterData);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040010C0 RID: 4288
		private static readonly MessageParser<DeployRotaterScRsp> _parser = new MessageParser<DeployRotaterScRsp>(() => new DeployRotaterScRsp());

		// Token: 0x040010C1 RID: 4289
		private UnknownFieldSet _unknownFields;

		// Token: 0x040010C2 RID: 4290
		public const int EnergyInfoFieldNumber = 13;

		// Token: 0x040010C3 RID: 4291
		private RotaterEnergyInfo energyInfo_;

		// Token: 0x040010C4 RID: 4292
		public const int RetcodeFieldNumber = 1;

		// Token: 0x040010C5 RID: 4293
		private uint retcode_;

		// Token: 0x040010C6 RID: 4294
		public const int RotaterDataFieldNumber = 11;

		// Token: 0x040010C7 RID: 4295
		private RotaterData rotaterData_;
	}
}
